<?php
namespace app\controller;

use app\BaseController;
use app\model\ArticleModel;
use app\model\ClassifyModel;
use think\facade\View;

/**
 * 人才交流
 */
class Exchange extends BaseController
{

    /**
     * 人才交流
     */
    public function index($cid = 6)
    {

        $catid = $cid;
        View::assign('cid', $catid);

        $classify = ClassifyModel::where(['deleted' => 0, 'id'=>$catid])->find();
        View::assign('classify', $classify);

//        $catid = input('catid', 0);
        // 获取资讯列表
        $this->getArticleList($catid);

        // 获取热门推荐资讯10条
        $this->getHotList($catid);


        return View::fetch();
    }


}
